package br.com.virtual.base.controller.cadastro;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.com.virtual.base.controller.util.VirtualMB;

@ManagedBean
@RequestScoped
public class PopupMB extends VirtualMB {

	private static final long serialVersionUID = 1L;
	private Boolean popup;

	@PostConstruct
	private void init() {
		this.popup = (Boolean) this.getSession("popup");
		this.setSession("popup", false);
		this.popup = (this.popup == null || this.popup != true) ? false : true;

	}

	public Boolean getPopup() {
		return popup;
	}

	public void setPopup(Boolean popup) {
		this.popup = popup;
	}
}
